package com.regentsoft.cloudback.enterpriseAdmin.service;

import com.regentsoft.cloudback.enterpriseAdmin.entity.ChannelInfo;
import com.regentsoft.cloudback.enterpriseAdmin.entity.CompanyInfo;
import com.regentsoft.cloudback.enterpriseAdmin.vo.ResultResp;
import com.regentsoft.cloudback.enterpriseAdmin.vo.req.ChannelAddInfo;
import com.regentsoft.cloudback.enterpriseAdmin.vo.req.ChannelDeleteReq;
import com.regentsoft.cloudback.enterpriseAdmin.vo.req.ChannelUpdateReq;

import java.util.List;

/**
 * Created by work on 2017/11/27.
 *
 * @author lumr
 */
public interface CompanyInfoService {
    /**
     * 获取企业数据库信息
     */
    CompanyInfo getCompanyInfo(String code);

    /**
     * 检查企业数据库是否存在
     */
    boolean checkCompany(String code);

    /**
     * 获取授权渠道
     */
    List<ChannelInfo> getChannelInfo(String code);

    /**
     * 获取未授权渠道
     */
    List<ChannelInfo> getUnUseChannelInfo(String code);

    ResultResp deleteChannel(ChannelDeleteReq req);

    ResultResp addChannel(ChannelAddInfo req);

    ResultResp updateChannel(ChannelUpdateReq req);
}
